package com.cqjtu.store.user.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @ProjectName: cqjtu-store
 * @Titile: UserLoginDTO
 * @Author: Lucky
 * @Description: 封装用户登录信息
 */
@Data
// todo   添加在线文档需要的注解  @ApiModel(value = "用户登录信息")
@ApiModel(value = "用户登录信息",description = "用户登录信息")
public class UserLoginDTO {
    //todo 非空校验
    @NotBlank
    @ApiModelProperty(value = "用户名",name = "username",example = "rose",required = true)
    private String username;
    @NotBlank
    @ApiModelProperty(value = "密码",name = "password",example = "123456",required = true)
    private String password;
}
